<h1>Editing category</h1>

<%= error_messages_for :category %>

<% form_for(:category, :url => category_path(@category), :html => { :method => :put }) do |f| %>
  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', category_path(@category) %> |
<%= link_to 'Back', categories_path %>